package cn.mysdp.biz.convert;

import cn.mysdp.biz.domain.*;
import cn.mysdp.biz.dto.request.*;
import java.util.Date;

/**
 * @ClassName: SdpProjectForShellRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2025-02-06
 * @Version: 1.0
 * Table: sdp_project
 * Comment:
 * 
 */
public class SdpProjectForShellRequestConvert extends BaseConvert {
    public static SdpProjectForShell convert(SdpProjectForShellRequest request) throws Exception {
        SdpProjectForShell daoRequest = new SdpProjectForShell();
        copyProperties(request, daoRequest);

        daoRequest.setCmd(daoRequest.getCmd() == null ? null : daoRequest.getCmd().trim());
        daoRequest.setStdin(daoRequest.getStdin() == null ? null : daoRequest.getStdin().trim());
        daoRequest.setParam(daoRequest.getParam() == null ? null : daoRequest.getParam().trim());
        daoRequest.setResult(daoRequest.getResult() == null ? null : daoRequest.getResult().trim());

        return daoRequest;
    }
}
